﻿using UtilsORM;
using UtilsORM.MySqlData;
////using System.Web.Script.Serialization;

namespace GatewayServerService.Data
{
    public class DBIotDeviceWarnLog
    {




        //public void  addWarnLog(iot_device_linkage linkage ,int warn, iot_device_linkage_condition condition,string keyname,string dvalue)
        //{
        //    //判断产品是否自动运行
        //    EFIotGatewayContext ef = new EFIotGatewayContext();
        //    iot_device_linkage_warn_log log = new iot_device_linkage_warn_log();

        //    log.wl_guid = System.Guid.NewGuid().ToString();
        //    log.wl_l_guid = linkage.l_guid;
        //    log.wl_warn_status = warn;
        //    log.wl_add_time = DateTime.Now;
        //    log.wl_key = condition.lc_key;
        //    log.wl_value = dvalue;
        //    log.wl_d_guid = condition.lc_d_guid;
        //    log.wl_remark = linkage.l_title;
        //    log.wl_key_name = keyname;
        //    ef.iot_device_linkage_warn_log.Add(log);
        //    ef.SaveChanges();

        //}
    }
}
